package cn.jiyun.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class HelloController {
    @GetMapping("/hello")
    public Map<String,Object> hello(){
        Map<String, Object> map = new HashMap<>();
        map.put("username","张三");
        map.put("age",48);
        map.put("address","北京市海淀区");
        return map;
    }
}
